<template>
  <div>
      <p ref="dd">{{count}}</p>
      <button  @click="fn">加一</button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            count:0
        }
    },
    methods:{
        fn(){
        this.count++
        // console.log(this.$refs.dd.innerHTML);
        this.$nextTick(()=>{
            console.log(this.$refs.dd.innerHTML);
        })
    }
    }
}
</script>

<style>

</style>